#include "pch.hpp"
#include "ReflectionFormat.hpp"




std::size_t Format::size(Type format)
{
	switch(format)
	{
	case R32G32B32A32_FLOAT: return 4 * sizeof(float);
	case R32G32B32A32_UINT: return 4 * sizeof(uint32);
	case R32G32B32A32_SINT: return 4 * sizeof(int32);
	case R32G32B32_FLOAT: return 3 * sizeof(float);
	case R32G32B32_UINT: return 3 * sizeof(uint32);
	case R32G32B32_SINT: return 3 * sizeof(int32);
	case R32G32_FLOAT: return 2 * sizeof(float);
	case R32G32_UINT: return 2 * sizeof(uint32);
	case R32G32_SINT: return 2 * sizeof(int32);
	case R32_FLOAT: return sizeof(float);
	case R32_UINT: return sizeof(uint32);
	case R32_SINT: return sizeof(int32);
	case R16_UINT: return sizeof(uint16);
	default: BOOSTEXT_THROW(invalid_value_exception(format));
	}
}
///////////////////////////////////////////////////////////////////////////////////////////////////
